package com.tjbank.cssys.mybatis.entity;

import java.io.Serializable;
import java.util.Date;

/**
 * IamTenant
 * 
 * @author PG(Auto Generator)
 * @version V1.0
 */
public class IamTenant extends IamTenantKey implements Cloneable, Serializable {
    private static final long serialVersionUID = -161123581321345589L;
    /** 租户代码 [50,0] Not NULL */
    protected String tenantCode;
    /** 租户名称 [50,0] Not NULL */
    protected String tenantName;
    /** 联系人 [20,0] */
    protected String linkman;
    /** 联系电话 [20,0] */
    protected String contactNumber;
    /** 联系地址 [255,0] */
    protected String address;
    /** 租户状态 [1,0] */
    protected String tenantState;
    /** 创建人 [20,0] */
    protected String createUser;
    /** 修改人 [20,0] */
    protected String updateUser;
    /** 创建时间 [19,0] */
    protected Date createTime;
    /** 修改时间 [19,0] */
    protected Date updateTime;
    /** 逻辑删除 [1,0] Not NULL */
    protected String isDeleted;

    public IamTenant() {
        super();
    }

    public IamTenantKey primaryKey() {
        return new IamTenantKey(id);
    }

    /** 取值 <== 租户代码 [50,0], Not NULL */
    public String getTenantCode() {
        return tenantCode;
    }

    /** 赋值 ==> 租户代码 [50,0], Not NULL */
    public void setTenantCode(String tenantCode) {
        this.tenantCode = tenantCode == null ? null : tenantCode.trim();
    }

    /** 取值 <== 租户名称 [50,0], Not NULL */
    public String getTenantName() {
        return tenantName;
    }

    /** 赋值 ==> 租户名称 [50,0], Not NULL */
    public void setTenantName(String tenantName) {
        this.tenantName = tenantName == null ? null : tenantName.trim();
    }

    /** 取值 <== 联系人 [20,0] */
    public String getLinkman() {
        return linkman;
    }

    /** 赋值 ==> 联系人 [20,0] */
    public void setLinkman(String linkman) {
        this.linkman = linkman == null ? null : linkman.trim();
    }

    /** 取值 <== 联系电话 [20,0] */
    public String getContactNumber() {
        return contactNumber;
    }

    /** 赋值 ==> 联系电话 [20,0] */
    public void setContactNumber(String contactNumber) {
        this.contactNumber = contactNumber == null ? null : contactNumber.trim();
    }

    /** 取值 <== 联系地址 [255,0] */
    public String getAddress() {
        return address;
    }

    /** 赋值 ==> 联系地址 [255,0] */
    public void setAddress(String address) {
        this.address = address == null ? null : address.trim();
    }

    /** 取值 <== 租户状态 [1,0] */
    public String getTenantState() {
        return tenantState;
    }

    /** 赋值 ==> 租户状态 [1,0] */
    public void setTenantState(String tenantState) {
        this.tenantState = tenantState == null ? null : tenantState.trim();
    }

    /** 取值 <== 创建人 [20,0] */
    public String getCreateUser() {
        return createUser;
    }

    /** 赋值 ==> 创建人 [20,0] */
    public void setCreateUser(String createUser) {
        this.createUser = createUser == null ? null : createUser.trim();
    }

    /** 取值 <== 修改人 [20,0] */
    public String getUpdateUser() {
        return updateUser;
    }

    /** 赋值 ==> 修改人 [20,0] */
    public void setUpdateUser(String updateUser) {
        this.updateUser = updateUser == null ? null : updateUser.trim();
    }

    /** 取值 <== 创建时间 [19,0] */
    public Date getCreateTime() {
        return createTime;
    }

    /** 赋值 ==> 创建时间 [19,0] */
    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    /** 取值 <== 修改时间 [19,0] */
    public Date getUpdateTime() {
        return updateTime;
    }

    /** 赋值 ==> 修改时间 [19,0] */
    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    /** 取值 <== 逻辑删除 [1,0], Not NULL */
    public String getIsDeleted() {
        return isDeleted;
    }

    /** 赋值 ==> 逻辑删除 [1,0], Not NULL */
    public void setIsDeleted(String isDeleted) {
        this.isDeleted = isDeleted == null ? null : isDeleted.trim();
    }

    /** 浅克隆 */
    @Override
    public IamTenant clone() {
        IamTenant cloneIamTenant = null;
        try {
            cloneIamTenant = (IamTenant) super.clone();
        } catch (CloneNotSupportedException e) {
            throw new RuntimeException(e);
        }
        return cloneIamTenant;
    }

    @Override
    public String toString() {
        return "IamTenant [id = " + id + ", tenantCode = " + tenantCode + ", tenantName = " + tenantName
                + ", linkman = " + linkman + ", contactNumber = " + contactNumber + ", address = " + address
                + ", tenantState = " + tenantState + ", createUser = " + createUser + ", updateUser = " + updateUser
                + ", createTime = " + createTime + ", updateTime = " + updateTime + ", isDeleted = " + isDeleted + "]";
    }
}